package com.team5101.product.service.config;

import com.team5101.constant.RabbitMQ;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {
   @Bean
    public TopicExchange getTopicExchange(){
       return new TopicExchange(RabbitMQ.PRODUCT_ADD_EXCHANGE);
   }
}
